{{ if .IsNamedParams }}
{{- $src := .Get "logo" -}}
{{- $small := .Get "logo_small" | default $src -}}
{{- $large := .Get "logo_large" | default $src -}}
<div class="friend-link">
    <div class="friend-link-item">
        <a target="_blank" href={{ .Get "url" | safeURL }} title={{ .Get "name" }}>
            <img class="friend-link-item-img" src={{ $src | safeURL }} sizes="auto"
                srcset="{{ $small | safeURL }}, {{ $src | safeURL }} 1.5x, {{ $large | safeURL }} 2x" />
            <span class="friend-link-item-name">{{ .Get "name" }}</span>
        </a>
    </div>
</div>
{{ end }}